package com.example.lottery.controller.result;

import com.example.lottery.service.dto.ActivityDetailDTO;
import com.example.lottery.service.enums.ActivityEnum;
import com.example.lottery.service.enums.ActivityPrizeEnum;
import com.example.lottery.service.enums.ActivityUserEnum;
import com.example.lottery.service.enums.PrizeTiersEnum;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

@Data
public class GetActivityDetailResult implements Serializable {
    /**
     * 活动Id
     */
    private Long activityId;

    /**
     * 活动名称
     */

    private String activityName;
    /**
     * 活动描述
     */
    private String description;
    /**
     * 活动状态
     */
    private Boolean valid;

    /**
     * 圈选奖品信息 多个
     */
    private List<GetActivityDetailResult.PrizeResult> prizes;
    /**
     * 圈选人员信息 多个
     */
    private List<GetActivityDetailResult.UserResult> users;

    @Data
    public static class PrizeResult implements Serializable {
        /**
         * 奖品id
         */

        private Long prizeId;
        /**
         * 奖品数量
         */

        private Long prizeAmount;
        /**
         * 奖品等级
         * @see PrizeTiersEnum#getMsg()
         */
        private String prizeTierName;

        /**
         * 奖品状态
         */
        private Boolean valid;

        //奖品详情
        private String name;

        private String description;

        private BigDecimal price;

        private String imageUrl;


    }
    @Data
    public static class UserResult implements Serializable{
        /**
         * 用户id
         */

        private Long userId;
        /**
         * 用户名称
         */

        private String userName;

        /**
         * 奖品状态
         */
       private Boolean valid;
    }
}
